package com.core.model.lxf;

import java.util.LinkedList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: lxf
 * Date: 2016/11/3
 * Time: 13:57
 * To change this template use Editor | File and Code Templates.
 */
public class RequestLimitParam {

    private Integer count;
    private Long time;
    private LinkedList<Long> requestTime = new LinkedList<>();

    public RequestLimitParam() {
    }

    public RequestLimitParam(Integer count, Long time, long requestTime) {
        this.count = count;
        this.time = time;
        this.requestTime.addLast(requestTime);
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Long getTime() {
        return time;
    }

    public void setTime(Long time) {
        this.time = time;
    }

    public LinkedList<Long> getRequestTime() {
        return requestTime;
    }

    public void setRequestTime(LinkedList<Long> lastRequestTime) {
        this.requestTime = lastRequestTime;
    }
}
